Skip to content

Conversation

@drewnoakes
Copy link
Member

Calling GetContainingLine().LineNumber causes TextSnapshotLine allocations. The GetContainingLineNumber() method avoids these.

@drewnoakes drewnoakes requested a review from a team as a code owner June 14, 2023 01:36
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 14, 2023
@drewnoakes drewnoakes force-pushed the fix-1827511-get-line-number-allocations branch from d4f13bd to 1ff1d7e Compare June 14, 2023 02:11
Calling `GetContainingLine().LineNumber` causes `TextSnapshotLine` allocations. The `GetContainingLineNumber()` method avoids these.
@drewnoakes drewnoakes force-pushed the fix-1827511-get-line-number-allocations branch from 1ff1d7e to 30681a6 Compare June 14, 2023 02:48
@CyrusNajmabadi CyrusNajmabadi enabled auto-merge (squash) June 14, 2023 03:18
@CyrusNajmabadi
Copy link
Member

Thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit 17b7e5d into dotnet:main Jun 14, 2023
@ghost ghost added this to the Next milestone Jun 14, 2023
@drewnoakes drewnoakes deleted the fix-1827511-get-line-number-allocations branch June 14, 2023 07:23
@RikkiGibson RikkiGibson modified the milestones: Next, 17.7 P3 Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants